package com.heima.admin.service.impl;

import com.heima.admin.service.SensitiveService;
import com.heima.clients.WemediaFeignClient;
import com.heima.model.admin.dto.SensitiveDto;
import com.heima.model.admin.entity.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SensitiveServiceImpl implements SensitiveService {

    @Autowired
    private WemediaFeignClient wemediaFeignClient;

    @Override
    public ResponseResult list(SensitiveDto dto) {

        ResponseResult result = wemediaFeignClient.list(dto);

        return result;
    }
}
